<%-- 
    Document   : home
    Created on : Sep 3, 2013, 11:26:10 PM
    Author     : Thai Ha Cong
--%>

<%@page import="model.Staff"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<%
    Staff staff = (Staff) session.getAttribute("staff");

    if (staff == null) {
        response.sendRedirect(request.getContextPath() + "/Administration");
    } else {
%>

<%
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="description" content="<s:property value="description"/>">
        <title><s:property value="title"/> - Online Shopping System</title>
        <link href="<%= request.getContextPath()%>/css/style_for_warehousing.css" rel="stylesheet" type="text/css"/>
        <link href="<%= request.getContextPath()%>/css/adMenu.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <div class="headerbg">
            <%@include file="/include/mHeader.jsp" %>
        </div>
        <div class="contentbg">
            <div class="adContent">
                <div class="adMenu">
                    <%@include file="/include/mMenu.jsp" %>
                </div>

                <div class="adBody">
                    <p><s:actionmessage escape="false"/></p>
                    <p><b>You have logged in with the following information:</b></p>
                     <%
                        out.println(staff.displayInfo());
                    %>
                </div>
            </div>
        </div>
        <div class="footerbg">
            <%@include file="/include/iFooter.jsp" %>
        </div>
    </body>
</html>

<%
    }
%>